﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns:MSHelp="http://msdn.microsoft.com/mshelp">
    <head>
        <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
        <meta content="history" name="save">
        <title>StyleCop Rules</title>
        <link rel="stylesheet" type="text/css" href="stylesheets/helpstudio.css"><link rel="stylesheet" type="text/css" href="styles/Presentation.css">
        <script src="script/helpstudio.js" type="text/javascript"></script>
        <script src="script/StandardText.js" type="text/javascript"></script>    
    </head>
    <body id="hsbody">
        <input type="hidden" id="userDataCache" class="userDataStyle" NAME="userDataCache"></input>
        <div id="allHistory" class="saveHistory" onsave="saveScrollPosition()" onload="loadScrollPosition()"></div>
        <script>WritePageTop(document.title);</script>    
        <div id="pagebody" valign="bottom">
            <div id="mainbody">
                <P>The StyleCop tool provides warnings that indicate style and consistency rule violations in C# code. The warnings are organized into rule areas such as documentation, layout,&nbsp;naming, ordering, readability,&nbsp;spacing, and so forth. Each warning signifies a violation of a&nbsp;style or consistency&nbsp;rule. This section provides an explanation of each of the default StyleCop rules. </P>
                <H1>In This Section</H1>
                <P><A href="Documentation%20Rules.html">Documentation Rules (SA1600-)</A></P>
                <P>Rules which verify the content and formatting of code documentation.</P>
                <P><A href="Layout%20Rules.html">Layout Rules (SA1500-)</A></P>
                <P>Rules which enforce code layout and line spacing.</P>
                <P><A href="Maintainability%20Rules.html">Maintainability Rules (SA1400-)</A></P>
                <P>Rules which improve code maintainability.</P>
                <P><A href="Naming%20Rules.html">Naming Rules (SA1300-)</A></P>
                <P>Rules which enforce naming requirements for members, types, and variables.</P>
                <P><A href="Ordering%20Rules.html">Ordering Rules (SA1200-)</A></P>
                <P>Rules which enforce a standard ordering scheme for code contents.</P>
                <P><A href="Readability%20Rules.html">Readability Rules (SA1100-)</A></P>
                <P>Rules which ensure that the code is well-formatted and readable.</P>
                <P><A href="Spacing%20Rules.html">Spacing Rules (SA1000-)</A></P>
                <P>Rules which enforce spacing requirements around keywords and symbols in the code.</P>
                <H1>Related Topics&nbsp;</H1>
                <P>It is possible to suppress the reporting of rule violations by adding suppression attributes within the source code. </P>
                <P><A href="Suppressions.html">Rule Suppressions</A></P>
            </div>
            <script>WritePageFooter();</script> 
        </div>
    </body>
</html>